Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add integration testing workflow dispatcher #495

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ghbogarin
Copy link

@ghbogarin ghbogarin commented Nov 9, 2022

Created a workflow dispatcher that takes a mux-player version as an input and runs tests on that version of the player. Tests run on an action at playback-testing repository (private) and once they are completed, a workflow execution is triggered on mux-elements side to display the results.

1:
Input Mux-Player version and click on Run Workflow
image

2:
image
A repository_dispatch event id triggered on Playback-testing side using Github’s API.

3:
image
Once tests are completed on playback-testing side, a repository_dispatch event is triggered on Mux-Elements using Github API, sending the test results to Mux-Elements.

4.
Summary is used to display test results:

image

Configuration:
For communication between the repositories a personal access token is needed (an account with access to the repository to be triggered is needed). The steps on this link can be followed to generate the token. In the scope, select Workflow:

image

Once the token is generated, this token will have to be added as an action secret with the name ‘ACCESS_TOKEN’. To do that, follow these steps:

  1. Go to the ‘Settings’ tab on your repository.
  2. Continue to Secrets -> Actions in section “Security”
  3. Finally create a new repository secret with the name ‘ACCESS_TOKEN’ and add the generated token.

Notes:
A token with name ‘ACCESS_TOKEN’ must be in both repositories. It's already set up on Playback-Testing.

@ghbogarin ghbogarin requested a review from a team as a code owner November 9, 2022 18:35
@vercel
Copy link

vercel bot commented Nov 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
elements-demo-create-react-app ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-svelte-kit ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-vanilla ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)
elements-demo-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 9:49PM (UTC)

@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Merging #495 (7cb849b) into main (aed3c8d) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #495      +/-   ##
==========================================
+ Coverage   84.67%   84.72%   +0.05%     
==========================================
  Files          40       40              
  Lines        7476     7504      +28     
  Branches      391      391              
==========================================
+ Hits         6330     6358      +28     
  Misses       1143     1143              
  Partials        3        3              
Impacted Files Coverage Δ
packages/mux-player/src/index.ts 76.01% <100.00%> (+0.53%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants